package HomeWork.HomeWork10.Cat;

/***/
public class dog extends animal{
    public dog() {
    }

    public dog(String color, int legNum) {
        super(color, legNum);
    }

    @Override
    public void eat() {
        System.out.println(getColor()+"修狗会吃饭");
    }

    public void lookHouse(){
        System.out.println(getColor()+"修狗会看家");
    }
}
